import request from '@/utils/request'

// 查询桩元器件绑定信息列表
export function listBind(query) {
  return request({
    url: '/scan/bind/pageList',
    method: 'get',
    params: query
  })
}

// 查询桩元器件绑定信息详细
export function getBind(id) {
  return request({
    url: '/scan/bind/' + id,
    method: 'get'
  })
}

// 新增桩元器件绑定信息
export function addBind(data) {
  return request({
    url: '/scan/bind',
    method: 'post',
    data: data
  })
}

// 修改桩元器件绑定信息
export function updateBind(data) {
  return request({
    url: '/scan/bind',
    method: 'put',
    data: data
  })
}

// 删除桩元器件绑定信息
export function delBind(id) {
  return request({
    url: '/scan/bind/' + id,
    method: 'delete'
  })
}
